# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=wlc
pkgver=1.13
pkgrel=0
pkgdesc="Weblate command line client"
url="https://weblate.org"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-argcomplete py3-dateutil py3-requests py3-xdg"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-responses"
source="https://github.com/WeblateOrg/wlc/archive/refs/tags/$pkgver/wlc-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	pytest wlc
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -r "$pkgdir"/usr/lib/python3.*/site-packages/wlc/test_*
}

sha512sums="
a6de0a1f6e6298d980341bf9e3801a9ba310efe0c70105a8cc561552f778f2c4a8bd5d6c77c8d7588e709dc28129ee258f977785fe0eff916616c682f3d6cb32  wlc-1.13.tar.gz
"
